﻿using com.guojin.core.io.message;
using com.guojin.core.io;

namespace com.guojin.mj.net.message.login
{
    public class GetHistoryRoom : Message
    {
        public static int TYPE = 7;
        public static int ID = 134;

        private string roomid;
        public static GetHistoryRoom Create(string room) {
            GetHistoryRoom cg = new login.GetHistoryRoom();
            cg.roomid = room;
            return cg;
        }
        public void decode(core.io.Input _in)
        {

        }

        public void encode(Output _out)
        {
            _out.writeString(roomid);
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "roomid"+ roomid;
        }
    }
}
